//
//  BHEncryption.m
//  OwnerAPP
//
//  Created by apple on 16/2/14.
//  Copyright © 2016年 apple. All rights reserved.
//

#import "BHEncryption.h"
#import "BHEncryptionClass.h"

@implementation BHEncryption
//DES加密加密解密
+ (NSString *) encode:(NSString *)str key:(NSString *)key{

    NSString *securePassword = [BHEncryptionClass encryptWithContent:str type:kCCEncrypt key:key];
    return securePassword;
}
+ (NSString *) decode:(NSString *)str key:(NSString *)key{
    NSString *newStr = [BHEncryptionClass encryptWithContent:str type:kCCDecrypt key:key];
    return newStr;

}

@end
